<?php


//检查积分是否够
if($_GET['jf'] ) $info->checkjf($prid);

$msg = $info->memberMsg();   //获取会员资料
?>


<div class="my_shop"> 
      <!--我的购物车标题行-->
      <ul>
        <li class="n">商品名称</li>
        <li class="w200">所获积分</li>
        <li class="w201">价格</li>
        <li class="w202">下单时间</li>
      </ul>
      <div id="productlistview">
        <div class="fahuo_title"><strong>购买商品列表</strong></div>
          <?
			 $result =  $info->getCartList();
			 if($result){
			  foreach($result as $key=>$value){
				  
			  ?>
        <div class="listBox <?php if($key % 2 == 0) echo 'gray';?>">
          <div class="i">
            	<?php	$vals=$info->getProOne($value['productID']);?>
                <a href="#" onclick="viewnum(<?=$value['id'];?>);">
           <img style="border: 1px solid rgb(237, 237, 237); margin: 1px;" src="uploadfile/product_b/<?=$vals[0]['Photos']?>" onerror="javascript:this.src='images/pro2_10.jpg'"  />
                </a>
          </div>
          <dt><?=$value['productName']?><br />
            <?=$value['SubName']?>
          <dd class="w200"><? echo $price = $value['price']; $totalprice[] = $value['price'];?></dd>
          <dd class="w170"><? echo $price = $value['price']; $total = $price ++;?></dd>
          <dd class="w170"><?=date("Y-m-d",$value['createdate'])?></dd>
          <div class="clr" style="clear:both"></div>
        </div>
      <div  style="width:757px;word-break:break-all; display:none; " id="v<?=$value['id'];?>">
        完整50个号码<br/>	<?php	$vals=$info->getProOne($value['productID']);?>
           <? 
		   echo   $vals[0]['Note'];
				
		   ?>
        </div>
        <? }}?>
        
        
        
      </div>
      <!--购物操作-->
      <div class="total">
        <div class="fr"> 优惠金额：<em>￥</em><b id="pdiscount">0.00</b> &nbsp;&nbsp;商品金额总计：<em>￥</em><b id="productprice"><?=@array_sum($totalprice);?></b> </div>
        <div class="clr"> </div>
      </div>
      <div class="NextStep_box">
        
        
        <script language="javascript">
             function viewnum(a){
				   $('#v'+a).toggle();
				 }
	    
			function abc(){
				 if(confirm(' \n是否确认付款（你的余额:<?php  $a = $info->memberMsg(); echo $a['money'];?>）')){
					 <?php if($total > $a['money']){?>
					 alert('你的余额不足请充值！');
					 location.href='memberchongji.php';
					 <? }else{?>
					location.href='forpay.php';
					<? }?>
				  }else{
					  alert('取消成功！');
					  return false;
				  }
			}

		</script> 

        <div class="gehang"></div>
      </div>
    </div>
<?php
	$a=$info->getProOne($_GET['prid']);
	print_r($a);
?>
<form action="" method="post"  onSubmit="return checkFrm(this)" >


  <input name="action" id="action" type="hidden" value="<? echo $jf == 1 ? "jfjiesuan" : "jiesuan"; ?>" />
  
  
<b style="font-size:14px;">收货人信息</b>
  <table class="sub_shopcar_table_2" width="698" border="0" cellspacing="1" cellpadding="0">
    <tr valign="middle" height="30">
      <td width="155">收货人姓名:</td>
      <td width="187"><input type="text" name="PersonName" id="PersonName" value="<?=$msg['user_truename']?>" /></td>
      <td width="153">电子邮件地址:</td>
      <td width="227"><input type="text" name="Email" id="Email" value="<?=$msg['user_email']?>" /></td>
    </tr>
    <tr valign="middle" height="30">
      <td width="155">详细地址:</td>
      <td width="187"><input type="text" name="Address" id="Address" value="" /></td>
      <td width="153">邮政编码:</td>
      <td width="227"><input type="text" name="PostCode" id="PostCode" value="" /></td>
    </tr>
    <tr valign="middle" height="30">
      <td width="155">电话:</td>
      <td width="187"><input type="text" name="Telephoto" id="Telephoto" value="<?=$msg['user_tel']?>" /></td>
      <td width="153">手机:</td>
      <td width="227"><input type="text" name="Mobile" id="Mobile" value="<?=$msg['user_mobile']?>" /></td>
    </tr>
    <tr valign="middle" height="30">
      <td width="155">最佳送货时间:</td>
      <td width="187"><input type="text" name="SendTime" id="SendTime" value="" /></td>
      <td width="153"></td>
      <td width="227">&nbsp;</td>
    </tr>
  </table>
  
  
  <div align="center">
    <input class="order_form_5" value="提交支付" name="" type="submit" />
  </div>

</form>
